<template>
    <div>
        <h1>Hello World</h1>
        <button @click="goLogin">人脸登录</button>
    </div>
</template>

<script setup lang="ts">
import { ref } from "vue" 
import { useRouter } from "vue-router"
import { useRoute } from "vue-router";

const router = useRouter()
const route = useRoute()

console.log(route,'route');


function goLogin() {
    router.push('/login')
}


</script>
